#!
#!
$sentence = " the quick brown fox jumped over the lazy dog";
@words = split(/ /,$sentence);

$the = "they a a  a";

$i=0;
foreach (@words)
{	
	$i++;
	print "$i\n";
	last if( $_== $the);
}

if($i<@words)
{
	print "yes";
}
else
{
	print "no";
}